Open file correctly in Windows
authorMohd Tarmizi <mohtar@users.noreply.github.com>
Sat, 18 Apr 2015 21:51:14 +0000 (05:51 +0800)
committerMohd Tarmizi <mohtar@users.noreply.github.com>
Sat, 18 Apr 2015 21:56:49 +0000 (05:56 +0800)
src/cargo/ops/cargo_doc.rs

index adc73556107a5e24b1f55bbd17fc2fe2d3053896..36769e13f20f34a0246276c85283c3bfbd5bb30c 100644 (file)
@@ -87,7 +87,7 @@ fn open_docs(path: &Path) {
 
 #[cfg(target_os = "windows")]
 fn open_docs(path: &Path) {
-    match Command::new("start").arg(path).status() {
+    match Command::new("cmd").arg("/C").arg("start").arg("").arg(path).status() {
         Ok(_) => return,
         Err(_) => ()
     };